﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Web;
using Htss.Platform.Data;

namespace DreamBox.BLL.User.Competence
{
    public class ComGroupRight
    {
        public void SetCompetence(HttpContext Context,DataTable dt)
        {
            Context.Session["GID"] = dt.Rows[0]["GID"];
            Context.Session["GroupName"] = dt.Rows[0]["GroupName"];
        }
        /// <summary>
        /// 获取默认组信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetDefaultCompetence()
        {
            DbAction action = new DbAction("dbox_UserGroup");
            action.SetFields("*","", DbFieldType.Query);
            return action.Select("GID=0");
        }
    }
}
